<template>
    <div id="child">
        <h5 style="color:red">父组件告诉我age={{age}}</h5>
        <button @click="goBus" v-on:click="go($event)">测试告诉父组件事件/a = {{a}}/</button>
        <cur-inp>
    
        </cur-inp>
    </div>
</template>

<script>
import CurInp from './CurrencyInput.vue'
export default {
    props: ['age','bus'],
    data() {
        return {
            a: 0
        }
    },
    methods: {
        go($ev) {
            // debugger;
            this.a++;
            this.$emit("childgo", $ev);
        },
        goBus($ev){
            this.bus.$emit("busev",$ev);
        }
    },
    components: {
        CurInp
    }
}
</script><

<style>
  
</style>
